package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VCorredor extends javax.swing.JFrame {
	private JPanel panInfCorredor;
	private JTextField txtCICprredor;
	private JTextField txtApellidoCorredor;
	private JLabel lblApellidoCorredor;
	private JButton btnSalirCorredor;
	private JButton btnEliminarCorredor;
	private JButton btnCancelarCorredor;
	private JButton btnModificarCorredor;
	private JButton btnGuardarCorredor;
	private JTextField jTextField1;
	private JLabel lblSueldoCorredor;
	private JTextField txtFechIngrCorredor;
	private JLabel lblFecIngCorredor;
	private JTextField txtNombreCorredor;
	private JLabel lblNombreCorredor;
	private JComboBox cmbCICorredor;
	private JLabel lblCedCorredor;
	private JButton btnBuscarCodCorredor;
	private JTextField txtCodCorredor;
	private JLabel lblCodCorredor;
	private JSeparator sptTituloInfCorredor;
	private JLabel lblTituloInfCorredor;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VCorredor inst = new VCorredor();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VCorredor() {
		super("Corredor");
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				panInfCorredor = new JPanel();
				getContentPane().add(panInfCorredor, "Center");
				panInfCorredor.setBackground(new java.awt.Color(17,139,235));
				panInfCorredor.setFont(new java.awt.Font("Andika Basic",0,14));
				panInfCorredor.setBounds(0, 0, 709, 536);
				panInfCorredor.setLayout(null);
				{
					lblTituloInfCorredor = new JLabel();
					panInfCorredor.add(lblTituloInfCorredor);
					lblTituloInfCorredor.setText("Información Corredor");
					lblTituloInfCorredor.setFont(new java.awt.Font("Andika Basic",1,18));
					lblTituloInfCorredor.setBounds(240, 5, 221, 24);
				}
				{
					sptTituloInfCorredor = new JSeparator();
					panInfCorredor.add(sptTituloInfCorredor);
					sptTituloInfCorredor.setBounds(130, 35, 433, 17);
				}
				{
					txtCodCorredor = new JTextField();
					panInfCorredor.add(txtCodCorredor);
					txtCodCorredor.setBounds(215, 95, 151, 22);
				}
				{
					btnBuscarCodCorredor = new JButton();
					panInfCorredor.add(btnBuscarCodCorredor);
					btnBuscarCodCorredor.setText("Buscar");
					btnBuscarCodCorredor.setBounds(406, 93, 98, 31);
					btnBuscarCodCorredor.setBackground(new java.awt.Color(165,42,42));
				}
				{
					lblCedCorredor = new JLabel();
					panInfCorredor.add(lblCedCorredor);
					lblCedCorredor.setText("C.I:");
					lblCedCorredor.setBounds(65, 152, 24, 24);
					lblCedCorredor.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					ComboBoxModel cmbCICorredorModel = 
							new DefaultComboBoxModel(
									new String[] { "V", "E" });
					cmbCICorredor = new JComboBox();
					panInfCorredor.add(cmbCICorredor);
					cmbCICorredor.setModel(cmbCICorredorModel);
					cmbCICorredor.setBounds(215, 153, 33, 24);
//					cmbCICorredor.addItemListener(this);
				}
				{
					txtCICprredor = new JTextField();
					panInfCorredor.add(txtCICprredor);
					txtCICprredor.setBounds(268, 155, 98, 22);
				}
				{
					lblNombreCorredor = new JLabel();
					panInfCorredor.add(lblNombreCorredor);
					lblNombreCorredor.setText("Nombre Corredor:");
					lblNombreCorredor.setBounds(53, 206, 131, 15);
					lblNombreCorredor.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					txtNombreCorredor = new JTextField();
					panInfCorredor.add(txtNombreCorredor);
					txtNombreCorredor.setBounds(215, 199, 151, 22);
				}
				{
					lblFecIngCorredor = new JLabel();
					panInfCorredor.add(lblFecIngCorredor);
					lblFecIngCorredor.setText("Fecha Ingresa Corredor:");
					lblFecIngCorredor.setBounds(52, 312, 150, 15);
					lblFecIngCorredor.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					lblCodCorredor = new JLabel();
					panInfCorredor.add(lblCodCorredor);
					lblCodCorredor.setText("Código Corredor:");
					lblCodCorredor.setBounds(57, 102, 108, 15);
					lblCodCorredor.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					txtFechIngrCorredor = new JTextField();
					panInfCorredor.add(txtFechIngrCorredor);
					txtFechIngrCorredor.setBounds(220, 308, 106, 22);
				}
				{
					lblSueldoCorredor = new JLabel();
					panInfCorredor.add(lblSueldoCorredor);
					lblSueldoCorredor.setText("Sueldo Corredor:");
					lblSueldoCorredor.setBounds(53, 368, 131, 15);
					lblSueldoCorredor.setFont(new java.awt.Font("Bitstream Charter",0,14));
				}
				{
					jTextField1 = new JTextField();
					panInfCorredor.add(jTextField1);
					jTextField1.setBounds(220, 356, 83, 22);
				}
				{
					btnGuardarCorredor = new JButton();
					panInfCorredor.add(btnGuardarCorredor);
					btnGuardarCorredor.setText("Guardar");
					btnGuardarCorredor.setBounds(36, 462, 99, 35);
					btnGuardarCorredor.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnModificarCorredor = new JButton();
					panInfCorredor.add(btnModificarCorredor);
					btnModificarCorredor.setText("Modificar");
					btnModificarCorredor.setBounds(172, 461, 109, 35);
					btnModificarCorredor.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnCancelarCorredor = new JButton();
					panInfCorredor.add(btnCancelarCorredor);
					btnCancelarCorredor.setText("Cancelar");
					btnCancelarCorredor.setBounds(436, 462, 102, 35);
					btnCancelarCorredor.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnEliminarCorredor = new JButton();
					panInfCorredor.add(btnEliminarCorredor);
					btnEliminarCorredor.setText("Eliminar");
					btnEliminarCorredor.setBounds(308, 462, 103, 34);
					btnEliminarCorredor.setBackground(new java.awt.Color(173,216,230));
				}
				{
					btnSalirCorredor = new JButton();
					panInfCorredor.add(btnSalirCorredor);
					btnSalirCorredor.setText("Salir");
					btnSalirCorredor.setBounds(569, 463, 94, 34);
					btnSalirCorredor.setBackground(new java.awt.Color(173,216,230));
				}
				{
					lblApellidoCorredor = new JLabel();
					panInfCorredor.add(lblApellidoCorredor);
					lblApellidoCorredor.setText("Apellido Corredor:");
					lblApellidoCorredor.setBounds(52, 259, 120, 15);
					lblApellidoCorredor.setFont(new java.awt.Font("Andika Basic",0,14));
				}
				{
					txtApellidoCorredor = new JTextField();
					panInfCorredor.add(txtApellidoCorredor);
					txtApellidoCorredor.setBounds(215, 257, 151, 22);
				}
			}
			pack();
			this.setSize(719, 568);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
  
	public void AgregarListenerCorredor(ActionListener accion){
		this.btnSalirCorredor.addActionListener(accion);
	}
}
